package com.homeworkh.fileserver.controller;

import com.homeworkh.commonserver.vo.RestResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lq
 * @date 2020/12/18 10:00
 */
@RestController(value = "file")
public class FileController {

    @Value("${upload.path}")
    private String uploadPath;

    @PostMapping(value = "/upload")
    public RestResponse uploadFile(HttpServletRequest request, MultipartFile excelFile){

        return RestResponse.error("");
    }
}
